from save import Save

class Statistics:
    def __init__(self) -> None:
        self.gameTime = 0
        self.gameRound = 0

    def toGlobal(self,save:Save) -> None:
        save.global_data["gameTime"] = self.gameTime
        save.global_data["gameRound"] = self.gameRound

    def fromGlobal(self,save:Save) -> None:
        self.gameTime = save.global_data["gameTime"]
        self.gameRound = save.global_data["gameRound"]
